package cn.learn.demo.rollback;

import cn.learn.ActivityApp;
import cn.learn.activiti.service.ITaskService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @author huangyezhan
 * @version 1.0
 * @date 2021年03月20日14:10
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = {ActivityApp.class})
public class Rollback {
    @Resource
    private ITaskService taskService;

    /**
     * 回退任务
     */
    @Test
    public void test() throws Exception {
        String taskId = "";
        taskService.rollbackTask(taskId);
    }


}
